package com.bookmanger.common.utils;

import com.bookmanger.entity.dto.ManagerDTO;

public class ManagerHolder {
    private static final ThreadLocal<ManagerDTO> tl = new ThreadLocal<>();

    public static void saveManager(ManagerDTO user){
        tl.set(user);
    }

    public static ManagerDTO getManager(){
        return tl.get();
    }

    public static void removeManager(){
        tl.remove();
    }
}
